package com.zj.config;

import com.zj.i18n.I18nUtil;
import com.zj.servlet.BeanServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyWebMvcConfig {

    @Bean
    ServletRegistrationBean mybeanservlet(){
        ServletRegistrationBean registrationBean = new ServletRegistrationBean(new BeanServlet());
        registrationBean.addUrlMappings("/beanServ");
        registrationBean.setName("beanServ");
        return registrationBean;
    }
}
